<template>
    <div class="new">
        <div class="headerr">
            <span class="shouye" @click="$router.push('/proportal/index')">首页 /</span>
            <span>远程办公申请</span>
        </div>
        <div class="xuan">
            <div class="top">
                <span>远程办公申请</span>
            </div>
        </div>
        <div class="table">
            <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" label-position="top" class="demo-ruleForm">
                <el-form-item label="申请人" prop="name">
                    <el-input v-model="ruleForm.name" size="small"></el-input>
                </el-form-item>
                <el-form-item label="所在部门" prop="department">
                    <el-input v-model="ruleForm.department" size="small" suffix-icon="el-icon-search"></el-input>
                </el-form-item>
                <el-form-item label="申请时间" prop="time">
                    <el-date-picker
                        v-model="ruleForm.time"
                        type="daterange"
                        range-separator="至"
                        start-placeholder="开始日期"
                        end-placeholder="结束日期"
                        size="small"
                        style="width: 100%;">
                    </el-date-picker>
                </el-form-item>
                <el-form-item label="申请原因" prop="reason" style="width: 100%;">
                    <el-input type="textarea" v-model="ruleForm.reason" size="small" placeholder="请输入"></el-input>
                </el-form-item>
                <el-form-item label="附件">

                </el-form-item>
            </el-form>
        </div>
        <div class="footer">
            <el-button size="small">取消</el-button>
            <el-button size="small">保存草稿</el-button>
            <el-button size="small" type="primary">提交</el-button>
        </div>
    </div>
</template>
<script>
export default{
    name:'remote',
    data() {
        return {
            ruleForm:{},
            rules:{
                name:[{required: true, message:'请输入', trigger: 'blur'}],
                department:[{required: true, message:'请输入', trigger: 'blur'}],
                time:[{required: true, message:'请输入', trigger: 'change'}],
                reason:[{required: true, message:'请输入', trigger: 'blur'}],
            },
            types:['合同期满','提前解除合同','试用期内离职','实习生离职'],
        }
    },
    methods:{
        handleCurrentChange(current) {
            this.pageInfo.page = current;
        },
        handleSizeChange(val) {
            this.pageInfo.page_size = val;
        },
    }
}
</script>
<style lang="less" scoped>
.new{
    width: 100%;
    .headerr{
        font-size: 14px;
        .shouye{
            color: rgba(0, 0, 0, 0.45);
            cursor: pointer;
            margin-right: 6px;
        }
    }
    .xuan{
        margin: 16px 0;
        padding: 24px;
        width: 100%;
        background-color: #fff;
        border-radius: 8px;
        .top{
            font-size: 18px;
            font-weight: 600;
            line-height: 25px;
        }
    }
    .table{
        margin-top: 16px;
        padding: 24px 24px 14px;
        background-color: #fff;
        .el-form {
            display: flex;
            flex-wrap: wrap;
            .el-form-item{
                width: 33%;
                padding: 0 10px;
            }
        }
        .el-pagination{
            text-align: right;
        }
    }
    .footer{
        margin: 25px 0;
        text-align: right;
    }
}
</style>